<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>RTorrent</title>

<style type="text/css" xml:space="preserve">
/*<![CDATA[*/
  body { font-family : "Verdana", sans ; font-size : 16px }
  td.hash { font-family : monospace; font-size : xx-small}
  td.number { padding-left : 1em ; padding-right : 1em;}
  .odd { background : gray; }
/*]]>*/
</style>

</head>

<body>

<h1>WebRTorrent</h1>

<h2>Downloading</h2>
<table summary="Downloading torrents">
<thead>
  <tr>
    <th>Name</th>
    <th>guessed title</th>
    <th>guessed year</th>
    <th>down</th>
    <th>up</th>
    <th>hash</th>
  </tr>
</thead>
<tbody>
% for row_id, (key, torrent) in enumerate(torrents):
  <tr \
% if row_id % 2 == 1:
class="odd"\
% endif
>
    <td><a href="/torrent/${key |u}">${torrent.name |h}</a></td>
    <td><a href="/torrent/${key |u}">${torrent.guess_title() |h}</a></td>
    <td><a href="/torrent/${key |u}">${torrent.guess_year() |h}</a></td>
    <td class="number">${torrent.down_rate |h}</td>
    <td class="number">${torrent.up_rate |h}</td>
    <td class="hash"><a href="/torrent/${key |u}">${key |h}</a></td>
    <td><a href="http://www.google.pl/search?q=${key |u}">google</a></td>
  </tr>
% endfor
</tbody>
</table>

<h2>Status</h2>

</body>